<?php
	include_once("../../MasterPages/headerPHPScript.php");
	$CourseCheckInService = new CourseCheckInService();
	$CourseID = $_GET["CourseID"];
	$StudentCode = $_GET["StudentCode"];
	$CourseScheduleID = $_GET["CourseScheduleID"];	
	
	$CourseCheckInDTO = new CourseCheckInDTO();
	$CourseCheckInDTO->CourseID = $CourseID;
	$CourseCheckInDTO->CourseScheduleID = $CourseScheduleID;
	$CourseCheckInDTO->StudentCode = $StudentCode;

	$CourseCheckInService->DeleteCourseCheckIn($CourseCheckInDTO);

	header("location:../index.php?page=teacher-validatecheckin.php&CourseID=$CourseID");
?>
